package io.qifan.desktop.client.registry;

import io.qifan.desktop.client.views.BaseController;
import javafx.scene.Parent;

import java.util.HashMap;

public class ViewRegistry {
    private final static HashMap<Class<? extends BaseController>, Object> registry = new HashMap<>();

    public static void put(Class<? extends BaseController> clazz, Object view) {
        registry.put(clazz, view);
    }

    public static Object get(Class<? extends BaseController> clazz) {
        return registry.get(clazz);
    }

}
